import vue from 'vue'
import Router from 'vue-router'

import Index from './components/Index/index'
import QueryTrips from './components/QueryTrips/queryTrips'
import BookPage from './components/BookPage/bookPage'
import Login from './Pages/Login/login'
import Register from './Pages/Register/register'
vue.use(Router)

// export default new Router({
//   routes: [{
//       path: '/',
//       name: 'index',
//       component: Index
//     },
//     {
//       path: '/queryTrips',
//       name: 'queryTrips',
//       component: QueryTrips
//     },
//     {
//       path: '/bookPage',
//       name: 'bookPage',
//       component: BookPage
//     },
//     {
//       path: '/Login',
//       name: 'Login',
//       component: Login
//     }, {
//       path: '/Register',
//       name: 'Register',
//       component: Register
//     }

//   ]

// })
const routers = [{
    path: '/',
    name: 'index',
    component: Index
  },
  {
    path: '/queryTrips',
    name: 'queryTrips',
    component: QueryTrips
  },
  {
    path: '/bookPage',
    name: 'bookPage',
    component: BookPage
  },
  {
    path: '/Login',
    name: 'Login',
    component: Login
  }, {
    path: '/Register',
    name: 'Register',
    component: Register
  }
]
export default routers
